use warnings;
use strict;


package EMS::CurrentUser;

use base qw(Jifty::CurrentUser);

sub _init {
    my $self = shift;
    my %args = (@_);

    if (delete $args{'_bootstrap'} ) {
        $self->is_bootstrap_user(1);
    } elsif (keys %args) {
        $self->user_object(EMS::Model::Pilot->new(current_user => $self));
        $self->user_object->load_by_cols(%args);
    }
    $self->SUPER::_init(%args);
}


1;